package top.hidoctor.auscultation.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.view.SPlineView;

public class TestAdapter extends BaseQuickAdapter<List<Integer>> {
    private Integer duration;
    private Integer length;
    private Integer maxVal;

    public TestAdapter(int layoutResId, List<List<Integer>> data) {
        super(layoutResId, data);
    }

    public void setInfo(Integer length, Integer maxVal, Integer duration) {
        this.length = length;
        this.maxVal = maxVal;
        this.duration = duration;
    }

    @Override
    protected void convert(BaseViewHolder helper, List<Integer> item) {
        SPlineView view = helper.getView(R.id.view1);

        view.setDate(length,maxVal,item,5,10,800);
    }


}
